import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 创建管圈颜色
export const spinTubeColorCreate = (data) => postRequest('/spin/tube-color/create', data);

// 更新管圈颜色
export const spinTubeColorUpdate = (data) => putRequest('/spin/tube-color/update', data);

// 删除管圈颜色
export const spinTubeColorDelete = (params) => deleteRequest('/spin/tube-color/delete', params);

// 获得管圈颜色
export const spinTubeColorGet = (params) => getRequest('/spin/tube-color/get', params);

// 获得管圈颜色分页
export const spinTubeColorPage = (params) => getRequest('/spin/tube-color/page', params);

// 导出管圈颜色 Excel
export const spinTubeColorExportExcel = (params) => getRequest('/spin/tube-color/export-excel', params);

// 提交
export const spinTubeColorSubmitAudit = (params) => postRequest('/spin/tube-color/submit-audit', params);
// 撤销提交
export const spinTubeColorClearSubmitAudit = (params) => postRequest('/spin/tube-color/clear-submit-audit', params);
// 审核
export const spinTubeColorAudit = (params) => postRequest('/spin/tube-color/audit', params);
// 撤销审核
export const spinTubeColorClearAudit = (params) => postRequest('/spin/tube-color/clear-audit', params);
// 保存并审核
export const spinTubeColorCreateAudit = (params) => postRequest('/spin/tube-color/create-audit', params);
// 更新并审核
export const spinTubeColorUpdateAudit = (params) => putRequest('/spin/tube-color/update-audit', params);
// 关闭
export const spinTubeColorClose = (params) => postRequest('/spin/tube-color/close', params);
// 撤销关闭
export const spinTubeColorClearClose = (params) => postRequest('/spin/tube-color/clear-close', params);

// 批量导入和验证
export const spinTubeColorBatchCreate = (params) => postRequest('/spin/tube-color/batch-create', params);
export const spinTubeColorBatchValid = (params) => postRequest('/spin/tube-color/batch-valid', params);
